package com.duoec.doc.helper;

import java.util.regex.Pattern;

/**
 *
 * @author xuwenzhen
 * @date 2020/2/7
 */
public class NumberHelper {
    private static final Pattern PATTERN = Pattern.compile("^[-|+]?\\d+(\\.\\d+)?$");
    public static boolean isNumeric(String str) {
        return PATTERN.matcher(str).matches();
    }
}
